package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DataxBizOrderMapper;
import com.ruoyi.system.domain.DataxBizOrder;
import com.ruoyi.system.service.IDataxBizOrderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 车辆出入订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-18
 */
@Service
public class DataxBizOrderServiceImpl implements IDataxBizOrderService 
{
    @Autowired
    private DataxBizOrderMapper dataxBizOrderMapper;

    /**
     * 查询车辆出入订单
     * 
     * @param id 车辆出入订单主键
     * @return 车辆出入订单
     */
    @Override
    public DataxBizOrder selectDataxBizOrderById(String id)
    {
        return dataxBizOrderMapper.selectDataxBizOrderById(id);
    }

    /**
     * 查询车辆出入订单列表
     * 
     * @param dataxBizOrder 车辆出入订单
     * @return 车辆出入订单
     */
    @Override
    public List<DataxBizOrder> selectDataxBizOrderList(DataxBizOrder dataxBizOrder)
    {
        return dataxBizOrderMapper.selectDataxBizOrderList(dataxBizOrder);
    }

    /**
     * 新增车辆出入订单
     * 
     * @param dataxBizOrder 车辆出入订单
     * @return 结果
     */
    @Override
    public int insertDataxBizOrder(DataxBizOrder dataxBizOrder)
    {
        return dataxBizOrderMapper.insertDataxBizOrder(dataxBizOrder);
    }

    /**
     * 修改车辆出入订单
     * 
     * @param dataxBizOrder 车辆出入订单
     * @return 结果
     */
    @Override
    public int updateDataxBizOrder(DataxBizOrder dataxBizOrder)
    {
        return dataxBizOrderMapper.updateDataxBizOrder(dataxBizOrder);
    }

    /**
     * 批量删除车辆出入订单
     * 
     * @param ids 需要删除的车辆出入订单主键
     * @return 结果
     */
    @Override
    public int deleteDataxBizOrderByIds(String ids)
    {
        return dataxBizOrderMapper.deleteDataxBizOrderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除车辆出入订单信息
     * 
     * @param id 车辆出入订单主键
     * @return 结果
     */
    @Override
    public int deleteDataxBizOrderById(String id)
    {
        return dataxBizOrderMapper.deleteDataxBizOrderById(id);
    }
}
